from django.conf.urls import url
from app01 import views

urlpatterns = [
    url(r'^login/.*?$', views.login, name='login'),  # 登录
    url(r'^logout/$', views.logout, name='logout'),  # 登录
    url(r'^register/$', views.register, name='register'),  # 注册
    url(r'^index/$', views.index, name='index'),  # 首页
    url(r'^article/(\d+)$', views.article, name='article'),  # 文章阅读页

    url(r'^backend/$', views.backend, name='backend'),  # 后台管理界面

    url(r'^article_list/$', views.article_list, name='article_list'),  # 文章列表展示
    url(r'^article_add/$', views.article_add, name='article_add'),  # 文章列表展示
    url(r'^article_edit/(\d+)/$', views.article_edit, name='article_edit'),  # 文章列表展示
]
